package bg.cinema_system.pojo;

import java.sql.ResultSet;
import java.sql.SQLException;

public class Mail {

	private int mailId;
	private String subject;
	private String body;
	private String mailType;
	
	
	public Mail(int mailId, String subject, String body, String mailType) {
		super();
		this.mailId = mailId;
		this.subject = subject;
		this.body = body;
		this.mailType = mailType;
	}
	
	public Mail(ResultSet rs) throws SQLException {
		mailId = rs.getInt("mail_id");
		subject = rs.getString("subject");
		body = rs.getString("body");
		mailType = rs.getString("mail_type");

	}

	public int getMailId() {
		return mailId;
	}
	public void setMailId(int mailId) {
		this.mailId = mailId;
	}
	public String getSubject() {
		return subject;
	}
	public void setSubject(String subject) {
		this.subject = subject;
	}
	public String getBody() {
		return body;
	}
	public void setBody(String body) {
		this.body = body;
	}
	public String getMailType() {
		return mailType;
	}
	public void setMailType(String mailType) {
		this.mailType = mailType;
	}
	
	
	
}